<%--
  Created by IntelliJ IDEA.
  User: tuhao
  Date: 2017/7/4
  Time: 9:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<div class="bjui-pageHeader" style="background-color: #fefefe; border-bottom: none;">
    <form data-toggle="ajaxsearch" id="findglobalform"
          data-options="{searchDatagrid:$.CurrentNavtab.find('#companyInfo_search')}">
        <fieldset>
            <legend style="font-weight:normal;">搜索：</legend>
            <div style="margin:0; padding:1px 5px 5px;">
                <label class="row-label">公司在第三方的平台标识:</label>
                <input name="payPlatformID" class="platformMoneymoremoreId" size="10">&nbsp;
                <div class="btn-group">
                    <button type="submit" class="btn-green" data-icon="search">查询</button>&nbsp;
                    <button type="reset" class="btn-orange" data-icon="times">重置</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>

<div class="bjui-pageContent">
    <table id="companyInfo_search" class="table table-bordered">
    </table>
    <script type="text/javascript">
        var user_table;
        $(function () {
            user_table = $('#companyInfo_search').datagrid({
                height: '100%',
                tableWidth: '100%',
                showToolbar: true,
                filterThead: false,
                showCheckboxcol: true,
                gridTitle : '审核数据列表',
                delPK: 'id',
                dataUrl: '/third_party_payment/balance',
                local: "remote",
                inlineEditMult: false,
                saveAll: false,
                addLocation: 'last',
                delConfirm: true,
                columns: [
                    {
                        name:'formType',
                        label: '账户类型',
                        align: 'center',
                        render: function (value) {
                            return value==1 ? "为托管账户" : "为自有账户";
                        }
                    }, {
                        name: 'withdrawBalance',
                        label: '可提现余额',
                        align: 'center'
                    }, {
                        name: 'payBalance',
                        label: '可投标余额',
                        align: 'center'
                    }, {
                        name: 'freezeBalance',
                        label: '冻结余额',
                        align: 'center'
                    }, {
                        name: 'bankCarNo',
                        label: '银行卡号',
                        align: 'center',
                        rule: 'required'
                    },{
                        name: 'retainBalance',
                        label: '快捷支付充值卡保留额',
                        align: 'center',
                        rule: 'required'
                    },{
                        name: 'bankCardWithdrawBalance',
                        label: '银行卡最多可提现额',
                        align: 'center',
                        rule: 'required'
                    },{
                        name: 'freeWithdrawBalance',
                        label: '免费提现额余额',
                        align: 'center',
                        rule: 'required'
                    },{
                        name: 'phoneNo',
                        label: '手机号码',
                        align: 'center',
                        rule: 'required'
                    },{
                        name: 'email',
                        label: '邮箱',
                        align: 'center',
                        rule: 'required'
                    },{
                        name: 'phoneStatus',
                        label: '手机认证状态',
                        align: 'center',
                        rule: 'required',
                        render: function (value) {
                            return value==0 ? "未认证" : "已认证";
                        }
                    }, {
                        name: 'emailStatus',
                        label: '邮箱认证状态',
                        align: 'center',
                        render: function (value) {
                            return value==0 ? "未认证" : "已认证";
                        }
                    },{
                        name: 'userStatus',
                        label: '用户认证状态',
                        align: 'center',
                        render: function (value) {
                            alert(value);
                            var type = "";
                            if (value==1) type="未认证";
                            if (value==2) type="快捷支付认证";
                            if (value==3) type="其他认证";
                            return type;
                        }
                    },{
                        name: 'userFreezeStatus',
                        label: '用户冻结状态',
                        align: 'center',
                        render: function (value) {
                            return value==0 ? "未冻结" : "已冻结";
                        }
                    }
                ],
                linenumberAll: true,
                paging: {pageSize:20,pageCurrent:1}
            });
        });
    </script>
</div>